jquery check if string contains space